package com.lean.android.projecttemplate.ui.speed

import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.navigation.NavController
import com.lean.android.ad.FeedAd
import com.lean.android.projecttemplate.ui.newpage.navigateToNewPage

private const val FEED_AD_KEY_1 = "feedAdKey1"

@Composable
fun SpeedScreen(
    navController: NavController
) {
    Column(
        modifier = Modifier.fillMaxSize(),
        verticalArrangement = Arrangement.Center,
        horizontalAlignment = Alignment.CenterHorizontally
    ) {
        Text(text = "Click to new Page", fontSize = 32.sp)

        Spacer(modifier = Modifier.height(20.dp))

        Button(onClick = {
            navController.navigateToNewPage()
        }) {
            Text(text = "NewPage", fontSize = 24.sp)
        }

        Spacer(modifier = Modifier.height(20.dp))

        FeedAd(key = "SpeedScreen")
    }
}